package com.ddlaw.serviceImpl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ddlaw.entity.TContractType;
import com.ddlaw.entity.TLawContracts;
import com.ddlaw.mapper.TContractTypeMapper;
import com.ddlaw.service.LawContractService;

@Service
@Transactional
public class LawContractServiceImpl implements LawContractService{
	@Resource
	TContractTypeMapper contractTypeMapper;
	
	@Override
	public List<TContractType> getByTypeId(Integer contractid) {
		return contractTypeMapper.getByTypeId(contractid);
	}

	@Override
	public TLawContracts getDetailById(int id) {
		// TODO Auto-generated method stub
		return contractTypeMapper.getDetailById(id);
	}

	@Override
	public List<TLawContracts> getByType(Map params) {
		// TODO Auto-generated method stub
		return contractTypeMapper.getByType(params);
	}

	@Override
	public int addReadNum(int contractId) {
		// TODO Auto-generated method stub
		return contractTypeMapper.addReadNum(contractId);
	}

}
